package com.how.warlock.engine;

import com.how.warlock.art.Art;

public class Font {
	private AnimatedSprite fontset;
	
	public final static int SIZE = 32;
	
	public Font(){
		for (int i = 0 ; i < Art.font.length; i++){
			fontset = new AnimatedSprite(Art.font);
		}
	}
	
	public void draw(String text, int x, int y){
		for (int i = 0; i < text.length(); i++){
			fontset.draw(x + i * (SIZE-20), y, text.charAt(i),0.6f);
		}
	}
	
}
